package com.java.util.resp;

import java.util.ArrayList;
import java.util.List;

public class ApexChartRespone {
	
	private int status;
	
	private String msg;

	private List<String> categories;

	private List<String> series;
	
	public ApexChartRespone error(String msg) {
		this.setStatus(500);
		this.setMsg(msg);
		this.categories = new ArrayList<String>();
		this.series = new ArrayList<String>();
		return this;
	}
	
	public ApexChartRespone success(List<String> categories, List<String> series) {
		this.setStatus(0);
		this.setMsg("Success");
		this.categories = categories;
		this.series = series;
		return this;
	}
	
	public ApexChartRespone() {
		categories = new ArrayList<String>();
		series = new ArrayList<String>();
	}

	public List<String> getCategories() {
		return categories;
	}

	public void setCategories(List<String> categories) {
		this.categories = categories;
	}

	public List<String> getSeries() {
		return series;
	}

	public void setSeries(List<String> series) {
		this.series = series;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
